package com.tjl.vending_machine.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * @auther CodeGenerator
 * @create 2021-02-20 15:46:35
 * @describe 实体类
 */
@Data
@TableName("machine")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="Machine对象", description="")
public class Machine implements Serializable {

private static final long serialVersionUID = 1L;

            @TableId(value = "id", type = IdType.UUID)
                private String id;

    @ApiModelProperty(value = "管理员id")
    @TableField("admin_id")
        private String adminId;

    @ApiModelProperty(value = "机器mac地址")
    @TableField("mac")
        private String mac;

    @ApiModelProperty(value = "机器放置地址")
    @TableField("address")
        private String address;

    @ApiModelProperty(value = "状态：故障：0，正常：1")
    @TableField("status")
        private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
        private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
        private Date updateTime;


    }